package com.cy.pj.category.controller;

import com.cy.pj.category.pojo.Category;
import com.cy.pj.category.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Controller {
    @Autowired
    private CategoryService categoryService;

    //查询
    @RequestMapping("/findCategory")
    public List<Category> doFindCategory(){
        List<Category> list= categoryService.findCategory();
        return list;
    }
    
}

